#!/bin/bash

echo "Building Bou Scheduler Project..."
echo

echo "Cleaning previous build..."
mvn clean

echo
echo "Compiling project..."
mvn compile

echo
echo "Running tests..."
mvn test

echo
echo "Building project..."
mvn package -DskipTests

echo
echo "Build completed successfully!"
echo
echo "Generated artifacts:"
echo "- bou-scheduler-core/target/bou-scheduler-core-1.0.0.jar"
echo "- bou-scheduler-redis/target/bou-scheduler-redis-1.0.0.jar"
echo "- bou-scheduler-netty/target/bou-scheduler-netty-1.0.0.jar"
echo "- bou-scheduler-spring-boot-starter/target/bou-scheduler-spring-boot-starter-1.0.0.jar"
echo "- bou-scheduler-web/target/bou-scheduler-web-1.0.0.jar"
echo "- bou-scheduler-example/target/bou-scheduler-example-1.0.0.jar"
